export default {
  /**
   * 养护管理涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 04020001---养护路线列表
   * /maintain/maintainline/list
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  lineCode              路线编号
   * @param  {string}  lineName              路线名称
   * @param  {string}  maintenanceId         维保单位
   *
   */
  "POST /maintain/maintainline/list": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            lineId:"1",
            lineCode: "00232323",
            lineName: "001",
            maintenanceName: "海康威视",
            linkman: "张三",
            phone: "0571-212323",
            remarks: "啦啦啦",
            creator: "Rocky Fan"
          },
          {
            lineId:"2",
            lineCode: "00232323",
            lineName: "001",
            maintenanceName: "海康威视",
            linkman: "张三",
            phone: "0571-212323",
            remarks: "啦啦啦",
            creator: "Rocky Fan"
          }
        ]
      }
    });
  },


  /**
   * 04020002---新增路线
   * /maintain/maintainline/save
   * @param  {string}  lineCode              路线编号
   * @param  {number}  lineName              路线名称
   * @param  {string}  maintenanceId         维保单位
   * @param  {number}  remarks               备注
   */
  "POST /maintain/maintainline/save": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        lineId: "100"
      }
    });
  },

  /**
   * 04020003---修改路线
   * /maintain/maintainline/update
   * @param  {string}  lineCode              路线编号
   * @param  {string}  lineName              路线名称
   * @param  {string}  maintenanceId         维保单位
   * @param  {string}  remarks               备注
   */
  "POST /maintain/maintainline/update": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



  /**
   * 04020004---路线信息批量导出
   * @param  {array}   lineIds             路径ids
   */
  "POST /04020004": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 04020005---路线信息批量删除
   * /maintain/maintainline/delete
   * @param  {array}   lineIds              路径ids
   */
  "POST /maintain/maintainline/delete": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 04020006---路线养护点保存
   * /maintain/maintainline/insertLineDevs
   * @param  {string}  lineId              路线编号
   * @param  {array}  devIds              养护点（设备）编号，支持多个
   */
  "POST /maintain/maintainline/insertLineDevs": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 04020007---路径详情
   * /maintain/maintainline/info/{lineId}
   * @param  {string}  lineId          路线详情
   *
   */
  "POST /maintain/maintainline/info": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        lineId:"1",
        lineCode: "00232323",
        lineName: "001",
        maintenanceId:"1",
        maintenanceName: "海康威视",
        linkman: "张三",
        phone: "0571-212323",
        remarks: "啦啦啦",
        creator: "Rocky Fan"
      }
    });
  },


  /**
   * 04020008---线路相关设备信息
   * /maintain/maintainline/queryLineDevs
   * @param  {array}  lineIds      支持多个，结果有重复的过滤重复项
   *
   */
  "POST /maintain/maintainline/queryLineDevs": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        list:[{
          devId: "001",
          devCode: "001",
          devName: "网络摄像头1",
          districtName: "滨江区",
          pointName: "具体点位",
        },{
          devId: "002",
          devCode: "002",
          devName: "网络摄像头2",
          districtName: "滨江区",
          pointName: "具体点位",
        },{
          devId: "004",
          devCode: "004",
          devName: "网络摄像头4",
          districtName: "滨江区",
          pointName: "具体点位",
        }]

      }
    });
  },



};
